#!/bin/bash
set -e

echo -e "Torrent Manager 启动中...\n"
echo "143.204.237.119 api.themoviedb.org" >> /etc/hosts
pm2 start /app/src/app.js -n torrentmanager -- prod
echo -e "Torrent Manager 启动成功!\n"
pm2 log torrentmanager

exec "$@"
